* lisp/progmodes/project.el (project-any-command): Allow local keymaps.
authorJuri Linkov <juri@linkov.net>
Sun, 25 Feb 2024 07:32:45 +0000 (09:32 +0200)
committerJuri Linkov <juri@linkov.net>
Sun, 25 Feb 2024 07:32:45 +0000 (09:32 +0200)
Use overriding-terminal-local-map instead of overriding-local-map.
This allows using keys from local maps (bug#69242).

lisp/progmodes/project.el

index aa92a73336e731fc0a2e31c0f8c72243aeddc45a..9622b1b6768f8ca2a7db33f0947411945f0f09c8 100644 (file)
@@ -1866,12 +1866,12 @@ Otherwise, `default-directory' is temporarily set to the current
 project's root.
 
 If OVERRIDING-MAP is non-nil, it will be used as
-`overriding-local-map' to provide shorter bindings from that map
-which will take priority over the global ones."
+`overriding-terminal-local-map' to provide shorter bindings
+from that map which will take priority over the global ones."
   (interactive)
   (let* ((pr (project-current t))
          (prompt-format (or prompt-format "[execute in %s]:"))
-         (command (let ((overriding-local-map overriding-map))
+         (command (let ((overriding-terminal-local-map overriding-map))
                     (key-binding (read-key-sequence
                                   (format prompt-format (project-root pr)))
                                  t)))